<@admin.header title="短消息">
<script type="text/javascript">
    $(document).ready(function(){
    });
</script>
</@admin.header>
    <body>
        <div class="place">
            <span>位置：</span>
            <ul class="placeul">
                <li>
                    <a href="#">首页</a>
                </li>
                <li>
                    <a href="#">发送短消息</a>
                </li>
            </ul>
        </div>
        <div class="rightinfo">
        	<!--默认查询表单-->
        	<form action="list.do" method="get" id="searchForm">
            <input type="hidden" name="pageNo" value="1"/>
			<div class="tools">
                <ul class="toolbar">
                    <li class="click">
                        <a href="add.do"><span><img src="${base}/resources/images/t01.png" /></span>添加</a>
                    </li>
                    <li>
                        <a href="javascript:PushMsg.delAll();"><span><img src="${base}/resources/images/t03.png" /></span>删除</a>
                    </li>
                    <li style="padding:0 0">
                        <span style="margin:0px 5px">关键字</span>
	                	<input name="searchText" type="text" class="dfinput" style="width:160px;" />&nbsp;
                    </li>
                    <li>
						<a href="javascript:PushMsg.search()"><span><img src="${base}/resources/images/search24.png" /></span>查找</a>
                    </li>
                </ul>
            </div>
			</form>
            <table class="tablelist">
                <thead>
                    <tr>
                        <th width="30"><input name="" type="checkbox" value="" checked="checked"/></th>
						<th width="60">编号<i class="sort"><img src="${base}/resources/images/px.gif" /></i></th>
						<th>消息内容</th>
                        <th>接收人</th>
                        <th>状态</th>
                        <th>发送时间</th>
                        <th>创建时间</th>
                        <th width="80">操作</th>
                    </tr>
                </thead>
                <tbody>
                	<#if page??>
					<#list page.list as d>
                    <tr id="tr_${d.id}">
                        <td>
                            <input name="" type="checkbox" value="${d.id}" />
                        </td>
						<td>${d_index+1}</td>
                        <td>${d.content!''}</td>
                        <td>${d.phoneNumber!''}</td>
						<td>${d.statusMessage!''}</td>
						<td>${d.sendDate!''}</td>
						<td>${d.addDate!''}</td>
                        <td>
                        	<a href="delete.do?ids=${d.id}" class="tablelink">删除</a>
                        </td>
                    </tr>
					</#list>
					</#if>
                </tbody>
            </table>
			<@common.pagination />
			<div style="text-align:right;">
				<a href="add.do"><button class="btn">发布新短信</button></a>
			</div>
        </div>
    </body>
</html>